import request from "@/utils/request.ts";
import Enum from "@/api/subCategoryApi/enum.ts";
import type { Filter, Page } from "@/types/subCategoryTypes/interface.ts";
import type { Response } from "@/types/commonTypes/commonTypes.ts";
import type { PageParams } from "@/types/subCategoryTypes/subCategoryTypes.ts";
/*获取属性列表的接口(筛选条件)*/
export const fetchFilterListAPI = (id: string): Promise<Response<Filter>> => request.get<any, Response<Filter>>(Enum.filter, { params: { id } });
/*获取商品列表分页查询的接口*/
export const fetchGoodsListAPI = (data: PageParams) => request.post<any,Response<Page>>(Enum.fetchGoods, data);
